package com.ljc;

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");
//        String url = "https://m.anjuke.com/su/xiaoqu-p7/";
        String url = "https://m.anjuke.com/su/xiaoqu-p/";
        //截取url中的数字
        String num = url.substring(url.lastIndexOf("p") + 1, url.lastIndexOf("/"));
        System.out.println(num);
    }
}